---
page_title: "cloudflare_hostname_tls_setting Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a Cloudflare per-hostname TLS setting resource. Used to set TLS settings for hostnames under the specified zone.
---

# cloudflare_hostname_tls_setting (Resource)

Provides a Cloudflare per-hostname TLS setting resource. Used to set TLS settings for hostnames under the specified zone.

## Example Usage

```terraform
resource "cloudflare_hostname_tls_setting" "example" {
  zone_id  = "0da42c8d2132a9ddaf714f9e7c920711"
  hostname = "sub.example.com"
  setting  = "min_tls_version"
  value    = "1.2"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `hostname` (String) Hostname that belongs to this zone name. **Modifying this attribute will force creation of a new resource.**
- `setting` (String) TLS setting name. **Modifying this attribute will force creation of a new resource.**
- `value` (String) TLS setting value.
- `zone_id` (String) The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**

### Read-Only

- `created_at` (String)
- `id` (String) The ID of this resource.
- `updated_at` (String)

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_hostname_tls_setting.example <zone_id>/<hostname>/<setting_name>
```
